package com.blog.BO;

import java.util.Date;

/**
 * @author 蒲鑫
 * @function 功能：传输相片的相关信息
 * @date 2023年5月25日
 */
public class PhotoBO {
	private int photoId;//相片id

	private String photoUrl;//相片地址

	private int userId;//所属用户id

	private Date uploadTime;//上传时间

	private Date uploadStartTime;//上传开始时间

	private Date uploadEndTime;//上传结束时间

	public int getPhotoId() {
		return photoId;
	}

	public void setPhotoId(int photoId) {
		this.photoId = photoId;
	}

	public String getPhotoUrl() {
		return photoUrl;
	}

	public void setPhotoUrl(String photoUrl) {
		this.photoUrl = photoUrl;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public Date getUploadTime() {
		return uploadTime;
	}

	public void setUploadTime(Date uploadTime) {
		this.uploadTime = uploadTime;
	}

	public Date getUploadStartTime() {
		return uploadStartTime;
	}

	public void setUploadStartTime(Date uploadStartTime) {
		this.uploadStartTime = uploadStartTime;
	}

	public Date getUploadEndTime() {
		return uploadEndTime;
	}

	public void setUploadEndTime(Date uploadEndTime) {
		this.uploadEndTime = uploadEndTime;
	}

	@Override
	public String toString() {
		return "PhotoBO [photoId=" + photoId + ", photoUrl=" + photoUrl + ", userId=" + userId + ", uploadTime="
				+ uploadTime + ", uploadStartTime=" + uploadStartTime + ", uploadEndTime=" + uploadEndTime + "]";
	}

	public PhotoBO(int photoId, String photoUrl, int userId, Date uploadTime, Date uploadStartTime,
			Date uploadEndTime) {
		super();
		this.photoId = photoId;
		this.photoUrl = photoUrl;
		this.userId = userId;
		this.uploadTime = uploadTime;
		this.uploadStartTime = uploadStartTime; 
		this.uploadEndTime = uploadEndTime;
	}

	public PhotoBO() {
		super();
	}
	
}
